<?php
/**
 * This file display for Page template.
 */
get_header();
global $post;
$woocommerce_page_class = (is_cart() || is_shop() || is_checkout() || is_checkout_pay_page() || is_woocommerce()) ? "py-md-5 my-3" : '';
?>
<main class="main_content" class="<?php $cll = is_woocommerce() ? "asd": ''; ?>">
	<?php get_template_part('parts/content/page','banner');?>
	<section class="page-content container">
		<div class="content-info <?php echo $woocommerce_page_class; ?>">
			<?php 
			if (have_posts()) {
				while(have_posts()) : the_post();
					the_content();
				endwhile;
			}
			?>
		</div>
	</section>
	<!--TEAM-->
	<?php 
		if (!is_cart() && !is_shop() && !is_checkout() && !is_checkout_pay_page() && !is_woocommerce()) {
			get_template_part('parts/content/home','team');
		}
		if (is_checkout() || is_checkout_pay_page()) {
			echo "<script>const CHECKOUT = true;</script>";
		}
	?>
</main>
<?php get_footer();?>
<script>
    $(function () {
		home_team();
		if (typeof CHECKOUT !== "undefined") {
			$(".woocommerce-billing-fields__field-wrapper").find('[name]').addClass("form-control");
			$(".woocommerce-billing-fields__field-wrapper").find('p.form-row').addClass("form-group").removeClass("form-row");
			$(".woocommerce-additional-fields__field-wrapper textarea").addClass("form-control");
			$(".woocommerce-additional-fields__field-wrapper p.form-row").addClass("form-group").removeClass("form-row");
		}
    });
</script>